﻿using Basic.FlowRemoteModel.FlowAudit;
using Basic.FlowRemoteModel.FlowAudit.Model;
using Basic.FlowService.Interface;
using WeDonekRpc.Client;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowService.RpcEvent
{
    internal class FlowAuditLogEvent : IRpcApiService
    {
        private readonly IFlowAuditLogService _Service;

        public FlowAuditLogEvent ( IFlowAuditLogService service )
        {
            this._Service = service;
        }
        public FlowLogItem[] GetFlowLogItems ( GetFlowLogItems obj )
        {
            return this._Service.GetLogItems(obj.LogId);
        }
        public PagingResult<AuditLogItem> QueryAuditLog ( QueryAuditLog obj )
        {
            return this._Service.Query(obj.Query, obj.ToBasicPage());
        }
    }
}
